package psd.model.Prolog.Converters;

import org.eclipse.jdt.core.dom.TypeDeclarationStatement;

import psd.model.IConverter;
import psd.model.Prolog.FactGenerationToolbox;
import psd.model.Prolog.PrologConverter;


public class PrologTypeDeclarationStatementConverter extends PrologConverter
		implements IConverter<TypeDeclarationStatement> {

	public PrologTypeDeclarationStatementConverter(
			FactGenerationToolbox toolbox) {
		super(toolbox);
	}

	@Override
	public boolean convert(TypeDeclarationStatement node) {
		String args[] = { idResolver.getID(node.getDeclaration()), this.getFilePath(node), this.getLineNumber(node) };
		createBodyFact(node, "execT", args);
		return true;
	}

}
